<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WASM Class Example</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        button {
            padding: 8px 16px;
            margin: 5px;
            font-size: 16px;
        }
        #count {
            font-size: 24px;
            font-weight: bold;
            margin: 20px 0;
        }
        input {
            padding: 8px;
            font-size: 16px;
            width: 60px;
        }
    </style>
</head>
<body>
    <h1>WASM Counter Example</h1>
    <div id="count">0</div>
    
    <button id="increment">Increment</button>
    <button id="decrement">Decrement</button>
    <button id="reset">Reset</button>
    
    <div style="margin-top: 20px;">
        <input type="number" id="addValue" value="5">
        <button id="add">Add</button>
    </div>

    <!-- 新增greet功能区域 -->
    <div style="margin-top: 30px; padding-top: 20px; border-top: 1px solid #ccc;">
        <h2>Greet Function</h2>
        <input type="text" id="nameInput" placeholder="Enter your name">
        <button id="greetBtn">Greet</button>
        <div id="greetOutput" style="margin-top: 10px;"></div>
    </div>
    
    <script type="module" src="./script.js"></script>
</body>
</html>